//
//  NetworkResponse.h
//  ServiceCode
//
//  Created by 曹连华 on 2020/3/30.
//

#import <Foundation/Foundation.h>
//#import "Network.h"
NS_ASSUME_NONNULL_BEGIN
@class NetworkOperationParam;

@interface NetworkRequestResponse : NSObject
/**
 *  功能:添加业务参数
*/
+ (NSDictionary *)demandParam:(NetworkOperationParam *)aParam;

/**
 *  功能:接口调用成功处理
 */
+ (void)successWithTask:(NSURLSessionDataTask *)task
         responseObject:(id)responseObject
                  param:(NetworkOperationParam *)aParam;
/**
 *  打印成功的Response
 *
 *  responseObject
 */
+ (void)printSuccessResponseObject:(id)aResponseObject
                            param :(NetworkOperationParam *)aParam
              ;

/**
 *  功能:接口调用失败处理
 */
+ (void)failWithTask:(NSURLSessionDataTask *)task
               error:(NSError *)aError
               param:(NetworkOperationParam *)aParam;

/**
 *  打印失败的Response
 *
 *   aParam
 *   aResponseObject
 *   aError
 */
+ (void)printFailResponseError:(NSError *)aError
                         param:(NetworkOperationParam *)aParam;
@end

NS_ASSUME_NONNULL_END
